package creditsProject.dto;

import java.io.Serializable;

public class Credit implements Serializable {

	private int creditId;
	private String name;
	private String description;
	private String duration;

	public Credit() {
		super();
	}

	public Credit(int creditId, String name, String description, String duration) {
		super();
		this.creditId = creditId;
		this.name = name;
		this.description = description;
		this.duration = duration;
	}

	public int getCreditId() {
		return creditId;
	}

	public void setCreditId(int creditId) {
		this.creditId = creditId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	@Override
	public String toString() {
		return "Credit [creditId=" + creditId + ", name=" + name
				+ ", description=" + description + ", duration=" + duration
				+ "]";
	}

	
	
}
